$m(function (args) {
    //获取详情页面头部信息
    debugger;
    var datas = args.data;
    var creattime = DateUtils.formatDate(datas.serviceResource.createTime, 'yyyy-MM-dd hh:mm:ss');
    $("#ca-name").html(datas.serviceName);
    $("#task-creator").html(datas.imageCreator);
    $("#belong_workspace").html(datas.workspaceName);
    $("#belong_theme").html(datas.applicationName);
    $("#task-createTime").html(creattime);
    $('.rs-right-top span[id="belong_workspace"]').attr("title", datas.workspaceName);
    $('.rs-right-top span[id="belong_theme"]').attr("title", datas.applicationName);
    $('#ca-name').attr("title", datas.serviceName);
    $m.loadPage(contextPath + "/api/ai/app/view/overview?id=" + datas.serviceResource.id + "&&t=" + TempoUtils.uuid() + "&&serviceId=" + datas.serviceResource.id, $(".task-right-bot-container"));
    $("#overview").css("border-bottom", "2px solid #1F73B6");

    $("#overview").click(function () {
        debugger
        $(".tempo-head-li").css("border-bottom", "");
        $(this).css("border-bottom", "2px solid #1F73B6");
        $(".task-right-bot-container").empty();
        $m.loadPage(contextPath + "/api/ai/app/view/overview?id=" + datas.serviceResource.id + "&&t=" + TempoUtils.uuid() + "&&serviceId=" + datas.serviceResource.id, $(".task-right-bot-container"));

    });
    $("#taskconfiguration").click(function () {
        debugger
        $(".tempo-head-li").css("border-bottom", "");
        $(this).css("border-bottom", "2px solid #1F73B6");
        $(".task-right-bot-container").empty();
        $m.loadPage(contextPath + "/api/ai/app/view/configuration?id=" + datas.serviceResource.id + "&&t=" + TempoUtils.uuid() + "&&serviceId=" + datas.serviceResource.id, $(".task-right-bot-container"));

    });
    $("#taskmonitor").click(function () {
        debugger
        $(".tempo-head-li").css("border-bottom", "");
        $(this).css("border-bottom", "2px solid #1F73B6");
        $(".task-right-bot-container").empty();
        $m.loadPage(contextPath + "/api/ai/app/view/monitor?id=" + datas.serviceResource.id + "&&t=" + TempoUtils.uuid() + "&&serviceId=" + datas.serviceResource.id, $(".task-right-bot-container"));

    });
    $("#taskaudit").click(function () {
        debugger
        $(".tempo-head-li").css("border-bottom", "");
        $(this).css("border-bottom", "2px solid #1F73B6");
        $(".task-right-bot-container").empty();
        $m.loadPage(contextPath + "/api/ai/app/view/audit?id=" + datas.serviceResource.id + "&&t=" + TempoUtils.uuid() + "&&serviceId=" + datas.serviceResource.id, $(".task-right-bot-container"));

    });

})